/**
 * 登录服务
 * 
 * @author lianchao
 */
// 创建登录模块
var clusterServiceApp = angular.module("clusterServiceApp", [ "commonApp" ]);

// 创建登录服务
clusterServiceApp.service("clusterService", [
		"commonService",
		function(commonService) {
			
			/**
			 * 新增集群
			 */
			this.select = function(params, sback, eback) {
				commonService.call("tsp/cluster/select", params, sback, eback);
			}
			
			/**
			 * 新增集群
			 */
			this.add = function(params, sback, eback) {
				commonService.call("tsp/cluster/add", params, sback, eback);
			}
			
			
			/**
			 * 查询集群
			 */
			this.update = function(params, sback, eback) {
				commonService.call("tsp/cluster/update", params, sback, eback);
			}
			
			/**
			 * 查询集群
			 */
			this.removeList = function(params, sback, eback) {
				commonService.call("tsp/cluster/deleteList", params, sback, eback);
			}
			
			
			/**
			 * 新增集群实例
			 */
			this.queryCurrent = function(params, sback, eback) {
				commonService.call("tsp/cluster/queryCurrent", params, sback, eback);
			}
			
			/**
			 * 查询集群实例
			 */
			this.query = function(params, sback, eback) {
				commonService.call("tsp/cluster/query", params, sback, eback);
			}
			
			/**
			 * 删除集群实例
			 */
			this.queryPage = function(params, sback, eback) {
				commonService.call("tsp/cluster/queryPage", params, sback, eback);
			}
		}
]);